package com.chaopei.day03;

/**
 * @Author Corday 天涯
 * @Date 2022/3/7 10:16
 */
public class Pet {
    private Integer pid;
    private String name;
    public  Pet(){}

    public Pet(Integer pid, String name) {
        this.pid = pid;
        this.name = name;
    }
//    set/get

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public  String tell(){
        return "["+"编号:"+this.pid+" 名称:"+this.name+"]";
    }
}
